package com.bicon.bdata_service_search.es.repository;

import com.bicon.bdata_service_search.es.entities.AccountInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

/**
 * 描述:
 * repository
 *
 * @author zhaoyu
 * @email zhaoyu@vv.cc
 * @create 2018-08-23 10:08
 */
@Component
public interface ElasticAccountInfoRepository extends ElasticsearchRepository<AccountInfo,String> {
    //TODO define the search
//    AccountInfo findByAccountName(String accountName);
    AccountInfo findByAccountName(String accountName);
    Page<AccountInfo> findAll();
//    AccountInfo  findById(String id);

}